package com.erp.erp_servers.Purchase.imp;

import com.erp.erp_dao.Purchase.IPurchaseLogDAO;
import com.erp.erp_entitys.Purchase.PurchaseLog;
import com.erp.erp_servers.Purchase.IPurchaseLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class ImpPurchaseLogService implements IPurchaseLogService {
    @Autowired
    private IPurchaseLogDAO purchaseLogDAO;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return purchaseLogDAO.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(PurchaseLog record) {
        return purchaseLogDAO.insert(record);
    }

    @Override
    public int insertSelective(PurchaseLog record) {
        return purchaseLogDAO.insertSelective(record);
    }

    @Override
    public PurchaseLog selectByPrimaryKey(Integer id) {
        return purchaseLogDAO.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(PurchaseLog record) {
        return purchaseLogDAO.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(PurchaseLog record) {
        return purchaseLogDAO.updateByPrimaryKey(record);
    }

    @Override
    public List<PurchaseLog> selectLogByPuId(Integer puId) {
        return purchaseLogDAO.selectLogByPuId(puId);
    }

}
